package com.ray.depot.service;

import com.ray.depot.table.dto.StockInOutDto;
import com.ray.depot.table.entity.StockInOut;
import com.zjhc.flyhong.common.function.operator.LoginUser;
import com.zjhc.flyhong.common.function.operator.PageDto;
import com.zjhc.flyhong.common.web.Result;

public interface StockInOutService {

	/**
	 * 新增
	 * @param params
	 * @param user
	 * @return
	 */
	Result<Object> addStockInOut(StockInOut params, LoginUser user);
	
    /**
     * 查询
     * @param id
     * @param user
     * @return
     */
	StockInOut queryStockInOut(String id, LoginUser user);
	
    /**
     * 修改
     * @param params
     * @param user
     * @return
     */
	Result<Object> updateStockInOut(StockInOut params, LoginUser user);
	
    /**
     * 删除
     * @param id
     * @param user
     * @return
     */
	Result<Object> deleteStockInOut(String id, LoginUser user);
	
   /**
    * 查询
    * @param params
    * @param page
    * @param user
    * @return
    */
	PageDto<StockInOut> queryStockInOut(StockInOut params, PageDto<StockInOut> page, LoginUser user);
    /**
     * 查询
     * @param params
     * @param page
     * @param user
     * @return
     */
    PageDto<StockInOutDto> querySelectStockInOut(StockInOutDto params, PageDto<StockInOutDto> page, LoginUser user);
}
